<div class="wrapper">
    <div>
        <div class="box box-top">
            <!-- /.box-header -->
            <!-- form start -->
            <form id="parameterForm" role="form" action="${base}/admin/parameter/save" method="post">
                <input type="hidden" name="id" value="${(parameter.id)!}">
                <div class="box-body">
                            <div class="form-group">
                                <label for="lens">lens</label>
                                <input type="text" value="${(parameter.lens)!}" class="form-control" name="lens" id="lens">
                            </div>

                            <div class="form-group">
                                <label for="iso">iso</label>
                                <input type="text" value="${(parameter.iso)!}" class="form-control" name="iso" id="iso">
                            </div>

                            <div class="form-group">
                                <label for="aperture">aperture</label>
                                <input type="text" value="${(parameter.aperture)!}" class="form-control" name="aperture" id="aperture">
                            </div>

                            <div class="form-group">
                                <label for="shutter">shutter</label>
                                <input type="text" value="${(parameter.shutter)!}" class="form-control" name="shutter" id="shutter">
                            </div>

                            <div class="form-group">
                                <label for="cameraHolding">cameraHolding</label>
                                <input type="text" value="${(parameter.cameraHolding)!}" class="form-control" name="cameraHolding" id="cameraHolding">
                            </div>

                            <div class="form-group">
                                <label for="height">height</label>
                                <input type="text" value="${(parameter.height)!}" class="form-control" name="height" id="height">
                            </div>

                            <div class="form-group">
                                <label for="tiltAngle">tiltAngle</label>
                                <input type="text" value="${(parameter.tiltAngle)!}" class="form-control" name="tiltAngle" id="tiltAngle">
                            </div>

                            <div class="form-group">
                                <label for="memo">Notes</label>
                                <input type="text" value="${(parameter.memo)!}" class="form-control" name="memo" id="memo">
                            </div>

                            <div class="form-group">
                                <label for="svgInfo">SvgInfo</label>
                                <input type="text" value="${(parameter.svgInfo)!}" class="form-control" name="svgInfo" id="svgInfo">
                            </div>

                            <div class="form-group">
                                <label for="createTime">CreateTime</label>
                                <input type="text" value="${(parameter.createTime)!}" class="form-control" name="createTime" id="createTime">
                            </div>

                            <div class="form-group">
                                <label for="modifyTime">ModifyTime</label>
                                <input type="text" value="${(parameter.modifyTime)!}" class="form-control" name="modifyTime" id="modifyTime">
                            </div>

                            <div class="form-group">
                                <label for="status">Status</label>
                                <input type="text" value="${(parameter.status)!}" class="form-control" name="status" id="status">
                            </div>

                            <div class="form-group">
                                <label for="templateId">Template Id</label>
                                <input type="text" value="${(parameter.templateId)!}" class="form-control" name="templateId" id="templateId">
                            </div>

                            <div class="form-group">
                                <label for="iconId">Icon Id</label>
                                <input type="text" value="${(parameter.iconId)!}" class="form-control" name="iconId" id="iconId">
                            </div>

                            <div class="form-group">
                                <label for="valid">Valid</label>
                                <select  name="valid" id="valid" class="form-control">
                                    <option value="true" <#if ((parameter.valid)!true)==true> selected="selected" </#if>>----Valid----</option>
                                    <option value="false" <#if ((parameter.valid)!true)==false> selected="selected" </#if>>----InValid----</option>
                                </select>
                            </div>

                    <div class="box-footer">
                        <button type="button" onclick="$('#parameterForm').submit();" class="btn btn-primary">Save
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function() {
        $("#parameterForm").validate({
            submitHandler:function(form){
                submitParameter();
            }
        });
    });
    function submitParameter(){
        HF.ajaxFormSubmit('parameterForm',function(result){
            alert("Save Suncess" +
                "");
            document.location.reload();
        },function(e){ alert("Save Failure");});
    }
</script>
